package vars

import (
	"gitee.com/cristiane/web_gin_template/config/setting"
	"gitee.com/cristiane/web_gin_template/pkg/util/goroutine"
	"gitee.com/kelvins-io/common/log"
	"gitee.com/kelvins-io/common/queue"
	"github.com/gomodule/redigo/redis"
	"github.com/jinzhu/gorm"
	"xorm.io/xorm"
)

var (
	App                *WEBApplication
	DBEngineXORM       xorm.EngineInterface
	DBEngineGORM       *gorm.DB
	LoggerSetting      *setting.LoggerSettingS
	AccessLogger       log.LoggerContextIface
	ErrorLogger        log.LoggerContextIface
	BusinessLogger     log.LoggerContextIface
	ServerSetting      *setting.ServerSettingS
	JwtSetting         *setting.JwtSettingS
	EmailConfigSetting *EmailConfigSettingS
	VerifyCodeSetting  *VerifyCodeSettingS
	QueueAMQPSetting   *setting.QueueAMQPSettingS
	QueueServer        *queue.MachineryQueue
	MysqlSetting       *setting.MysqlSettingS
	RedisSetting       *setting.RedisSettingS
	RedisPool          *redis.Pool
	GPoolSetting       *setting.GPoolSettingS
	GPool              *goroutine.Pool
)
